package ace.cmp.asserts.core.autoconfig;

import ace.cmp.asserts.api.AssertService;
import ace.cmp.asserts.core.impl.DefaultAssertService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author caspar
 * @date 2023/2/1 16:55
 */
@Configuration
public class AssertCoreAutoConfig {
  @Bean
  @ConditionalOnMissingBean
  public AssertService assertService() {
    return new DefaultAssertService();
  }
}
